
export default [
    { name: "Login", path: "/login", component(resolve) { require(['@/views/Login'], resolve); }, },
    { name: "Layout", path: "/layout", component(resolve) { require(['@/views/Layout'], resolve); },
        redirect: "/layout/main",
        children: [
            // 首页
            { name: "Main", path: "/layout/main", component(resolve) { require(['@/views/main'], resolve); } },      
            
            // 收账管理
            { name: "ZhanghaoGuanLi", path: "/layout/payment/manage", component(resolve) { require(['@/views/Layout/payment/manage'], resolve); } },
            
            // 提现管理
            { name: "TIXian", path: "/layout/withdrawal/manage", component(resolve) { require(['@/views/Layout/withdrawal/manage'], resolve); } },

            // // 基本资料
            { name: "Basic", path: "/layout/setting/basic", component(resolve) { require(['@/views/Layout/setting/basic'], resolve); } },

            // 订单管理
            { name: "PayOrder", path: "/layout/order/manage", component(resolve) { require(['@/views/Layout/order/manage'], resolve); } },

            // 充值管理
            { name: "Chonzhi", path: "/layout/recharge/manage", component(resolve) { require(['@/views/Layout/recharge/manage'], resolve); } },
            
            // demo
            { name: "ZiJin", path: "/layout/demo", component(resolve) { require(['@/views/Layout/demo'], resolve); } },
            { name: "Zhanghaotonji", path: "/layout/demo", component(resolve) { require(['@/views/Layout/demo'], resolve); } },
            { name: "Anqin", path: "/layout/demo", component(resolve) { require(['@/views/Layout/demo'], resolve); } },
            { name: "TuanDui", path: "/layout/demo", component(resolve) { require(['@/views/Layout/demo'], resolve); } },
            // { name: "ZiJin", path: "/layout/demo", component(resolve) { require(['@/views/Layout/demo'], resolve); } },

        ],
    },
    {
        path: '/',
        redirect: '/login'
    }
]